package com.yf1706.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.yf1706.comm.RowMapper;

public class stockgoodsRowMapper implements RowMapper<stockgoodsbean>{

	@Override
	public stockgoodsbean mapper(ResultSet rs) throws SQLException {
		stockgoodsbean stockgoods=new stockgoodsbean();
		stockgoods.setSid(rs.getInt("sid"));
		stockgoods.setSphone(rs.getString("sphone"));
		stockgoods.setSadress(rs.getString("sadress"));
		stockgoods.setSname(rs.getString("sname"));
		stockgoods.setStime(rs.getDate("stime"));
		stockgoods.setGid(rs.getInt("gid"));
		stockgoods.setSprice(rs.getString("sprice"));
		stockgoods.setGnum(rs.getString("gnum"));
		return stockgoods;
	}

}